﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;

namespace Erebos
{
    class ScreenSizeHelper
    {
        public static GraphicsDevice Device;
        public static int SizeWidth;
        public static int SizeHeight;

        public static float GetPixelHorizontal(int prozent)
        {
            return SizeWidth / 100 * prozent;
        }

        public static float GetProzentHorizontal(int pixel)
        {
            return pixel / (SizeWidth / 100);
        }

        public static float GetPixelVertical(int prozent)
        {
            return SizeHeight / 100 * prozent;
        }

        public static float GetProzentVertical(int pixel)
        {
            return pixel / (SizeHeight / 100);
        }

        public static float GetPixelHorizontal(int prozent, int sizeWidth)
        {
            return sizeWidth / 100 * prozent;
        }

        public static float GetProzentHorizontal(int pixel, int sizeWidth)
        {
            return pixel / (sizeWidth / 100);
        }

        public static float GetPixelVertical(int prozent, int sizeHeight)
        {
            return sizeHeight / 100 * prozent;
        }

        public static float GetProzentVertical(int pixel, int sizeHeight)
        {
            return pixel / (sizeHeight / 100);
        }
    }
}
